#define  _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int n = 0;
	scanf("%d", &n);
	int i = 0;
	double score=0.0;
	double sum = 0.0;
	double max = 1.0;
	double min = 100.0;
	for (i = 0; i < n; i++)
	{
		scanf("%lf ", &score);
		sum += score;
		if (score > max)
		{
			max = score;
		}
		if (score < min)
		{
			min = score;
		}
	}
	printf("%.2lf %.2lf %.2lf\n", sum / 5, max, min);
	return 0;
}